package com.liddhome.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.liddhome.dao.OldtimesDao;
import com.liddhome.entity.Oldtimes;
import com.liddhome.service.OldtimeService;

/**
 * 博客Service实现类
 * @author lidd
 *
 */
@Service("oldtimeService")
public class OldtimeServiceImpl implements OldtimeService{

	@Resource
	private OldtimesDao oldtimesDao;
	
	public List<Oldtimes> countList() {
		return oldtimesDao.countList();
	}

	public List<Oldtimes> list(Map<String, Object> map) {
		return oldtimesDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {
		return oldtimesDao.getTotal(map);
	}

	public Oldtimes findById(String id) {
		return oldtimesDao.findById(id);
	}

	public Integer update(Oldtimes oldtimes) {
		return oldtimesDao.update(oldtimes);
	}

	public Oldtimes getLastBlog(String id) {
		return oldtimesDao.getLastBlog(id);
	}

	public Oldtimes getNextBlog(String id) {
		return oldtimesDao.getNextBlog(id);
	}

	public Integer add(Oldtimes oldtimes) {
		return oldtimesDao.add(oldtimes);
	}

	public Integer delete(String id) {
		return oldtimesDao.delete(id);
	}

	

}

